# $NetBSD: Makefile,v 1.10 2014/06/01 12:49:38 thomasklausner Exp $
#

DISTNAME=		proxychains-4.2.0
CATEGORIES=		net
MASTER_SITES=		http://github.com/downloads/haad/proxychains/
PROXYCHAINS_VERSION=	4.2.0
PKGNAME=		proxychains-${PROXYCHAINS_VERSION}
EXTRACT_SUFX=		.tar.bz2
LICENSE=		gnu-gpl-v2

MAINTAINER=		haad@netbsd.org
HOMEPAGE=		https://haad.github.com/proxychains/
COMMENT=		Chain multiple proxies in a transparent way

# pkgsrc is not currently able to fetch distfiles from https web servers
# (see mk/fetch/fetch.mk), so you have to use a browser for now.
FETCH_BEFORE_ARGS=	--no-check-certificate


WRKSRC=		${WRKDIR}/proxychains

USE_PKGLOCALEDIR=	yes
USE_TOOLS+=		gmake
USE_LIBTOOL=		yes
LIBTOOL_OVERRIDE=	${WRKSRC}/libtool
GNU_CONFIGURE=		yes

post-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/proxychains/
	${INSTALL_DATA} ${WRKSRC}/src/proxychains.conf \
		${PREFIX}/share/examples/proxychains/

.include "../../mk/bsd.pkg.mk"
